//
//  JBBasicDataCollectionViewCell.m
//  JustBen
//
//  Created by Yongbin Zhang on 12/4/13.
//  Copyright (c) 2013 ZhangYongbin(JustBen). All rights reserved.
//

#import "JBBasicDataCollectionViewCell.h"


static CGFloat const kDefaultCollectionViewCellWidth = 90.0f;
static CGFloat const kDefaultCollectionViewCellHeight = 90.0f;


@implementation JBBasicDataCollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}



#pragma mark - setters
- (void)setCellData:(id)cellData
{
    if (cellData) {
        if (![cellData isEqual:_cellData]) {
            _cellData = cellData;
            
            [self performSelector:@selector(updateViewContents)];
        }
    }
}

#pragma mark - 模版方法
//  根据cellData更新View
- (void)updateViewContents
{
    
}

#pragma mark - 模版方法
//  cell的高度
+ (CGFloat)cellHeight
{
    return kDefaultCollectionViewCellHeight;
}

//  cell的高度
+ (CGFloat)cellWidth
{
    return kDefaultCollectionViewCellWidth;
}

@end
